package com.woniuxy.system.demol.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.woniuxy.system.demol.entity.Perms;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author why
 * @since 2023-09-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain=true)
@TableName("role")
public class RoleAllVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名
     */
    private String name;

    /**
     * 描述
     */
    private String description;
    // 记录部门名称
    @TableField(exist = false)
    private String department;
    @TableField(exist = false)
    private Boolean status;

    private Integer aid;
    private Integer sid;


    private Integer rid;

    private String sname;
    private Integer state;

    private List<Perms> permsList;
    @TableField(exist = false)
    private String time;
}
